
/*
 * GET home page.
 */
var Index = require('../controllers/index');
module.exports = function(app){
  app.get('/',Index.course);
  app.post('/upload',Index.upload);
  app.post('/uploadGPS',Index.uploadGPS);
  //以下是软工课用到的接口
  app.get('/pdf',Index.pdf);
  app.post('/regPdf',Index.regPdf);
  app.post('/loginPdf',Index.loginPdf);
  app.get('/getUserInfo',Index.getUserInfo);
  app.get('/getTargetInfo',Index.getTargetInfo);
  app.post('/updateHead',Index.updateHead);
  app.post('/updateNickname',Index.updateNickname);
  app.post('/replyToPdf',Index.replyToPdf);
  app.post('/praiseToReply',Index.praiseToReply);
  app.post('/subReplyToReply',Index.subReplyToReply);
  app.post('/praiseToSubReply',Index.praiseToSubReply);
  app.post('/commentToSubReply',Index.commentToSubReply);
  app.get('/getReplyList',Index.getReplyList);
  app.get('/getReply',Index.getReply);
  app.get('/getSubReply',Index.getSubReply);
};